import { createRouter, createWebHistory } from 'vue-router'
import IndexView from '@/pages/IndexView.vue'
import LoginView from '@/pages/LoginView.vue'
import RegisterView from '@/pages/RegisterView.vue'
import Book01View from '@/pages/Book01View.vue'
import Book02View from '@/pages/Book02View.vue'
import Book03View from '@/pages/Book03View.vue'
import Book04View from '@/pages/Book04View.vue'
import Book05View from '@/pages/Book05View.vue'
import SantiBook01 from '@/components/Santi-book01.vue'
import SantiBook02 from '@/components/Santi-book02.vue'
import SantiBook03 from '@/components/Santi-book03.vue'
import SantiBook04 from '@/components/Santi-book04.vue'
import SantiBook05 from '@/components/Santi-book05.vue'
import SantiBook06 from '@/components/Santi-book06.vue'
import SantiBook07 from '@/components/Santi-book07.vue'
import SantiBook08 from '@/components/Santi-book08.vue'
import SantiBook09 from '@/components/Santi-book09.vue'
import SantiBook10 from '@/components/Santi-book10.vue'
import SantiBook11 from '@/components/Santi-book11.vue'
import SantiBook12 from '@/components/Santi-book12.vue'
import SantiBook13 from '@/components/Santi-book13.vue'
import SantiBook14 from '@/components/Santi-book14.vue'
import SantiBook15 from '@/components/Santi-book15.vue'
import SantiBook16 from '@/components/Santi-book16.vue'
import SantiBook17 from '@/components/Santi-book17.vue'
import SantiBook18 from '@/components/Santi-book18.vue'
import SantiBook19 from '@/components/Santi-book19.vue'
import SantiBook20 from '@/components/Santi-book20.vue'
import SantiBook21 from '@/components/Santi-book21.vue'
import SantiBook22 from '@/components/Santi-book22.vue'
import SantiBook23 from '@/components/Santi-book23.vue'
import SantiBook24 from '@/components/Santi-book24.vue'
import SantiBook25 from '@/components/Santi-book25.vue'
import SantiBook26 from '@/components/Santi-book26.vue'
import SantiBook27 from '@/components/Santi-book27.vue'
import SantiBook28 from '@/components/Santi-book28.vue'
import SantiBook29 from '@/components/Santi-book29.vue'
import SantiBook30 from '@/components/Santi-book30.vue'
import SantiBook31 from '@/components/Santi-book31.vue'
import SantiBook32 from '@/components/Santi-book32.vue'
import SantiBook33 from '@/components/Santi-book33.vue'
import BookClassify from '@/pages/BookClassify.vue'
import BookClassify1 from '@/pages/BookClassify1.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: IndexView
    },
    {
      path: '/book/classify',
      name: 'BookClassify',
      component: BookClassify
    },
    {
      path: '/book/classify1',
      name: 'BookClassify1',
      component: BookClassify1
    },
    {
      path: '/buy-book01',
      name: 'BuyBook01',
      component: () => import('@/pages/BuyBook01.vue')
    },
    {
      path: '/buy-book02',
      name: 'BuyBook02',
      component: () => import('@/pages/BuyBook02.vue')
    },
    {
      path: '/book01',
      name: 'book01',
      component: Book01View
    },
    {
      path: '/book01/santi-book01',
      name: 'santi-book01',
      component: SantiBook01
    },
    {
      path: '/book01/santi-book02',
      name: 'santi-book02',
      component: SantiBook02,
    },
    {
      path: '/book01/santi-book03',
      name: 'santi-book03',
      component: SantiBook03,
    },
    {
      path: '/book01/santi-book04',
      name: 'santi-book04',
      component: SantiBook04,
    },
    {
      path: '/book01/santi-book05',
      name: 'santi-book05',
      component: SantiBook05,
    },
    {
      path: '/book01/santi-book06',
      name: 'santi-book06',
      component: SantiBook06,
    },
    {
      path: '/book01/santi-book07',
      name: 'santi-book07',
      component: SantiBook07,
    },
    {
      path: '/book01/santi-book08',
      name: 'santi-book08',
      component: SantiBook08,
    },
    {
      path: '/book01/santi-book09',
      name: 'santi-book09',
      component: SantiBook09,
    },
    {
      path: '/book01/santi-book10',
      name: 'santi-book10',
      component: SantiBook10,
    },
    {
      path: '/book01/santi-book11',
      name: 'santi-book11',
      component: SantiBook11,
    },
    {
      path: '/book01/santi-book12',
      name: 'santi-book12',
      component: SantiBook12,
    },
    {
      path: '/book01/santi-book13',
      name: 'santi-book13',
      component: SantiBook13,
    },
    {
      path: '/book01/santi-book14',
      name: 'santi-book14',
      component: SantiBook14,
    },
    {
      path: '/book01/santi-book15',
      name: 'santi-book15',
      component: SantiBook15,
    },
    {
      path: '/book01/santi-book16',
      name: 'santi-book16',
      component: SantiBook16,
    },
    {
      path: '/book01/santi-book17',
      name: 'santi-book17',
      component: SantiBook17,
    },
    {
      path: '/book01/santi-book18',
      name: 'santi-book18',
      component: SantiBook18,
    },
    {
      path: '/book01/santi-book19',
      name: 'santi-book19',
      component: SantiBook19,
    },
    {
      path: '/book01/santi-book20',
      name: 'santi-book20',
      component: SantiBook20,
    },
    {
      path: '/book01/santi-book21',
      name: 'santi-book21',
      component: SantiBook21,
    },
    {
      path: '/book01/santi-book22',
      name: 'santi-book22',
      component: SantiBook22,
    },
    {
      path: '/book01/santi-book23',
      name: 'santi-book23',
      component: SantiBook23,
    },
    {
      path: '/book01/santi-book24',
      name: 'santi-book24',
      component: SantiBook24,
    },
    {
      path: '/book01/santi-book25',
      name: 'santi-book25',
      component: SantiBook25,
    },
    {
      path: '/book01/santi-book26',
      name: 'santi-book26',
      component: SantiBook26,
    },
    {
      path: '/book01/santi-book27',
      name: 'santi-book27',
      component: SantiBook27,
    },
    {
      path: '/book01/santi-book28',
      name: 'santi-book28',
      component: SantiBook28,
    },
    {
      path: '/book01/santi-book29',
      name: 'santi-book29',
      component: SantiBook29,
    },
    {
      path: '/book01/santi-book30',
      name: 'santi-book30',
      component: SantiBook30,
    },
    {
      path: '/book01/santi-book31',
      name: 'santi-book31',
      component: SantiBook31,
    },
    {
      path: '/book01/santi-book32',
      name: 'santi-book32',
      component: SantiBook32,
    },
    {
      path: '/book01/santi-book33',
      name: 'santi-book33',
      component: SantiBook33,
    },
    {
      path: '/book02',
      name: 'book02',
      component: Book02View
    },
    {
      path: '/book03',
      name: 'book03',
      component: Book03View
    },
    {
      path: '/book04',
      name: 'book04',
      component: Book04View
    },
    {
      path: '/book05',
      name: 'book05',
      component: Book05View
    },
    {
      path: '/login',
      name: 'login',
      component: LoginView,
    },
    {
      path: '/register',
      name: 'register',
      component: RegisterView,
    },
  ],
  scrollBehavior(to, from, savedPosition) {
    return { top: 0 }
  }
})

export default router
